import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
export function getUserName() {
  return Cookies.get(userName)
}

export function setUserName(data) {
  return Cookies.set(userName, data)
}

export function setTokenMarchant(data) {
  return Cookies.set('Admin-Token-Marchant', data)
}

export function getStorage(TokenKey) {
  return Cookies.get(TokenKey)
}

export function setStorage(TokenKey,data) {
  return Cookies.set(TokenKey)
}
export function removeStorage(TokenKey) {
  return Cookies.remove(TokenKey)
}
